package tw.com.com;


import tw.com.enumType.OutPutType;

public class OutputFactory {
	static OutPutType writer = OutPutType.txt;
//	private final static Logger logger = Logger.getLogger(OutputFactory.class);

	public static MyWriter create(OutPutType type) {
//		logger.debug("OutputFactory create" + type);
		switch (type) {
		case pdf:
			return new PdfOut();
		case word:
			return new PdfOut();
		case excel:
			return new ExcelOut();
		default:
			return new TxtOut();
		}

	}

	public static MyWriter createPDF() {
		return new PdfOut();
	}

	public static MyWriter createExcel() {
		return new ExcelOut();
	}

	public static MyWriter createWord() {
		return new PdfOut();
	}

	public static MyWriter createTxt() {
		return new PdfOut();
	}

}
